package com.xiaomi.pojo;

import org.springframework.context.annotation.ComponentScan;

import java.util.Date;
@ComponentScan
public class Order {private String id;
	private int uid;
	private double money;
	private String status;
	private Date time;
	private String address;
	private String username;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	private int aid;

	public Order() {
		// TODO Auto-generated constructor stub
	}

	public Order(String id, int uid, double money, String status, Date time, String address, String username, int aid) {
		this.id = id;
		this.uid = uid;
		this.money = money;
		this.status = status;
		this.time = time;
		this.address = address;
		this.username = username;
		this.aid = aid;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}

	@Override
	public String toString() {
		return "Order{" +
				"id='" + id + '\'' +
				", uid=" + uid +
				", money=" + money +
				", status='" + status + '\'' +
				", time=" + time +
				", address='" + address + '\'' +
				", username='" + username + '\'' +
				", aid=" + aid +
				'}';
	}
}
